#include<stdio.h>
//int main()
{
	int a, b, c, d, e=0;
	for (a = 1; a <= 9; a++)
	{
		for (b = 1; b <= 20; b++)
		{
			for (c = 1; c <= 42; c++)
			{
				for (d = 1; d <= 83; d++)
				{
					if (a * 10 + b * 5 + c * 2 + d * 1 == 100&&a+b+c+d==40)
						e++;
				}
			}
		}
		
	}
    printf("%d\n", e);
}